// 存放home页面中http请求
import AxiosHttp from "../utlis/http";

// 获取首页轮播图等信息
let getHomeList = ()=> AxiosHttp('/api/front/index','get');

// 获取排行榜数据
let getTopList = ()=>AxiosHttp(`/api/front/product/leaderboard`,'get')

// 获取商品列表
let getGoodsList = (type)=>AxiosHttp(`/api/front/index/product/${type}/?page=1&limit=10`,'get')
export {
    getHomeList,
    getTopList,
    getGoodsList
}